import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
// 引入懒加载指令插件并且注册
import { layzPlugin } from './directives'
// 引入全局组件插件
import { componentPlugin } from '@/components'
// 引入初始化样式文件
import '@/styles/common.scss'

const app = createApp(App)

app.use(createPinia())
app.use(router)
// 定义全局指令   懒加载
app.use(layzPlugin)
app.use(componentPlugin)
app.mount('#app')
